<div class="main">
  <div class="query-info shadowbox">
    <div class="container-header">项目公告</div>
    <form class="base-info pa-form-content"
      name="queryForm" novalidate>
      <div class="pa-form-control pa-form-control-inline">
        <label>发布单位：</label>
        <select name="checkUnit"
          ng-model="projectNotice.queryData.deptId">
          <option value=""></option>
          <option value="{{item.id}}"
            ng-repeat="item in projectNotice.unit">{{item.name}}</option>
        </select>
      </div>
      <div class="pa-form-control pa-form-control-inline">
        <label>发布时间：</label>
        <input type="text" ng-datepicker name="startTime"  
          ng-model="projectNotice.queryData.startTime">
          到
        <input type="text" ng-datepicker name="endTime"
          ng-model="projectNotice.queryData.endTime">
      </div>
    </form>
    <div class="btn-outer-right">     
      <a class="pa-btn"
        ng-click="projectNotice.query(queryForm)">
        <i class="fa fa-search"></i>
        <span class="ml5">查询</span>
      </a>
      <a class="pa-btn reset-btn"
        ng-click="projectNotice.reset()">
        <i class="fa fa-repeat"></i>
        <span class="ml5">重置</span>
      </a>    
    </div>
  </div>
  <!-- 巡查记录 -->
  <div class="pa-table-container shadowbox">
    <div class="registration-code">
      <a class="pa-btn" ui-sref="announcement">发布公告</a>
    </div>
    <form class="base-info">
      <table class="pa-table">
        <thead>
          <tr>
            <th>发布单位</th>
            <th>通知单位</th>
            <th>公告标题</th>
            <th>发布人</th>
            <th>发布时间</th>
            <th>操作</th>
          </tr>
        </thead>
        <tbody>
          <tr ng-repeat="item in projectNotice.projectNoticeList">
            <td>{{item.dept}}</td>
            <td>{{item.orgNames}}</td>
            <td>{{item.title}}</td>            
            <td>{{item.operatorName}}</td>
            <td>{{item.createTime}}</td>
            <td class="check">
              <div class="del"
                authorization-btn="api/checkRecord/app/queryContentList"
                ui-sref="announcementDetail({id:item.id})">
                <i class="fa fa-street-view color"></i>
                <span>详情</span>
              </div>
            </td>             
          </tr>
        </tbody>
      </table>
    </form>
    <div class="total-num">
      共计<span class="total-num-colorful">
      {{projectNotice.paginationData.total}}</span>条
    </div>
    <!-- 分页 -->
    <div class="pagination-outer">
      <uib-pagination
        total-items="projectNotice.paginationData.total"
        ng-model="projectNotice.paginationData.pageNum"
        items-per-page="projectNotice.paginationData.pageSize"
        ng-change="pageChange()"
        class="pagination-sm"
        boundary-link-numbers="true"
        max-size="5"
        next-text="下一页"
        previous-text="上一页"></uib-pagination>
    </div>
  </div>
</div>